<?php
class lib_upload_group extends lib_base{
	public $table_name = "qc_upload_group";
    public $pk = "group_id";

    public function getList($cond)
    {
        $all = $this->findAll(array($cond),'add_time desc');
        return $all;
    }

    public function add($data)
    {   
        $data['sort'] = 100;
        $data['status'] = 1;
        $data['add_time'] = time();
        return $this->create($data);
    }

}